package com.shinechain.utils;

public class Test {
    public static void main(String[] args) {

        getRequestTest();

    }

    private static void getRequestTest() {

        String url = "https://www.baidu.com";
        try {
            String str = TestHttpClient.doGet(url, "UTF-8");
            if (str != null) {
                System.out.println("http Get request result:" + str);
            } else {
                System.out.println("http Get request process fail");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}